import urllib.request as ur
import urllib.parse as up
import re


request = ur.Request('https://edu.csdn.net/')
response = ur.urlopen(request).read()
with open('csdn.html','wb') as f:
    f.write(response)
print(request)